package com.example.yangyinzhaixian;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.widget.Button;

public class LoginActivity extends AppCompatActivity implements View.OnClickListener {

    private Button login_blank_btn;
    private Button login_skip_btn;
    private Intent intent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_login);
        intent = new Intent(this,CourseActivity.class);

        initView();
    }

    private void initView() {
        login_blank_btn = (Button) findViewById(R.id.login_blank_btn);
        login_skip_btn = (Button) findViewById(R.id.login_skip_btn);
        login_blank_btn.setOnClickListener(this);
        login_skip_btn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.login_blank_btn:
                startActivity(intent);
                finish();
                break;
            case R.id.login_skip_btn:
                startActivity(intent);
                finish();
                break;
        }
    }
}
